A Step-by-Step Guide to Building an Application with Flex
Table of Contents
MXML Components
Browse CartView.mxml on your server and view the code in your text editor (CartView is part of the flexstore.zip, available in the Requirements section).
The CartView class is an example of a reusable MXML component.


Figures 2 and 3. A reusable MXML component and its code.
For each MXML component you create, Flex generates an ActionScript class where the specified root defines which class it inherits. In CartView, the root node is VBox, so the CartView class extends VBox.